using UnityEngine;
using System.Collections;

public class MainPanel : MonoBehaviour {

	// Use this for initialization
	public GUISkin _gskin;
	public Texture _texture;
	private ToolBar toolb;

	void Awake()
	{
		toolb = new ToolBar();
		//toolb.Rect = new Rect(
		toolb.Textu = _texture;
		if( _gskin != null )
		{
			toolb.Skin = _gskin;
		}
		print("ToolB Created");
	}
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	void OnGUI () 
	{     
		//toolb._BG.Draw();
		toolb.Draw();		
	}
}

